﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using KPIS.GERP.GHRMS.BLL;

namespace KPIS.GERP.GHRMS.APP.App_UI.Forms
{
    public partial class Menu : System.Web.UI.Page
    {
        protected void LoginButton_Click(object sender, EventArgs e)
        {
            TextBox userNameTextBox = (TextBox)((LinkButton)sender).NamingContainer.FindControl("UserNameTextBox");
            if (!string.IsNullOrEmpty(userNameTextBox.Text.Trim()))
            {
            //    RadMenu1.FindItemByText("Login").Visible = false;
            //    RadMenu1.FindItemByText("Logout").Visible = true;
            //    UserDetailsPanel.Visible = true;
            //    LoginLabel.Text = userNameTextBox.Text.Trim();
            }
        }

        protected void RadMenu1_ItemClick(object sender, RadMenuEventArgs e)
        {
            if (e.Item.Text == "Logout")
            {
                //RadMenu1.FindItemByText("Logout").Visible = false;
                //RadMenu1.FindItemByText("Login").Visible = true;
                //UserDetailsPanel.Visible = false;
            }
        }

        
       

    }
}
